﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;



namespace Runda.CMS.Service.RundaService
{     
    public partial class BillService : ServiceBase
    {
        private BillProcessor billProcessor = new BillProcessor(int.Parse(System.Configuration.ConfigurationManager.AppSettings["ThreadCount"]));

        public BillService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            billProcessor.Start();
        }

        protected override void OnStop()
        {
            billProcessor.Sotp();
        }
    }
}
